<template>

  <div class="manage_page fillcontain">
    <head-top></head-top>
    <el-row style="height: 100%;">
      <el-col
        :span="4"
        style="min-height: 100%; background-color: #324057;"
      >
      
        <el-menu
          :default-active="defaultActive"
          style="min-height: 100%;"
          router
        >
          <el-menu-item index="manage">
            <i class="el-icon-menu"></i>首页</el-menu-item>
          <el-submenu index="userList">
            <template slot="title">
              <i class="icon iconfont lz-icon-yonghu1"></i>用户管理</template>
            <el-menu-item index="userList">用户列表</el-menu-item>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title">
              <i class="icon iconfont lz-icon-dianpu"></i>客服管理</template>
            <el-menu-item index="serviceList">异常数据</el-menu-item>
            <el-menu-item index="feedback">问题反馈</el-menu-item>
            <!-- <el-menu-item index="serviceList">公众号客服</el-menu-item> -->
          </el-submenu>
          <el-submenu index="4">
            <template slot="title">
              <i class="icon iconfont lz-icon-iconfontzhizuobiaozhun023110"></i>消息管理</template>
            <el-menu-item index="sendMessage">发送短信</el-menu-item>
            <el-menu-item index="outSitePush">推送(友盟+APP)</el-menu-item>
            <el-menu-item index="onSitePush">推送(APP)</el-menu-item>
          </el-submenu>
          <el-submenu index="5">
            <template slot="title">
              <i class="el-icon-tickets"></i>模版管理</template>
            <el-menu-item index="messageTemplate">短信模版</el-menu-item>
            <el-menu-item index="youMengPushTemplate">推送模版(友盟+APP)</el-menu-item>
          </el-submenu>
          <el-submenu index="6">
            <template slot="title">
              <i class="icon iconfont lz-icon-shebeixinxi"></i>设备管理</template>
            <el-menu-item index="equipmentManage">设备管理</el-menu-item>
          </el-submenu>
          <el-submenu index="7">
            <template slot="title">
              <i class="el-icon-document"></i>数据统计</template>
            <el-menu-item index="historyHomeChartDataList">历史数据</el-menu-item>
          </el-submenu>
          <!-- <el-submenu index="3">
            <template slot="title">
              <i class="el-icon-plus"></i>添加数据</template>
            <el-menu-item index="addShop">添加商铺</el-menu-item>
            <el-menu-item index="addGoods">添加商品</el-menu-item>
          </el-submenu>
          <el-submenu index="4">
            <template slot="title">
              <i class="el-icon-star-on"></i>图表</template>
            <el-menu-item index="visitor">用户分布</el-menu-item>
            <el-menu-item index="newMember">用户数据</el-menu-item>
          </el-submenu>
          <el-submenu index="5">
            <template slot="title">
              <i class="el-icon-edit"></i>编辑</template>
            <el-menu-item index="uploadImg">上传图片</el-menu-item>
            <el-menu-item index="vueEdit">文本编辑</el-menu-item>
          </el-submenu>
          <el-submenu index="6">
            <template slot="title">
              <i class="el-icon-setting"></i>设置</template>
            <el-menu-item index="adminSet">管理员设置</el-menu-item>
            <el-menu-item index="sendMessage">发送通知</el-menu-item>
          </el-submenu>
          <el-submenu index="7">
            <template slot="title">
              <i class="el-icon-warning"></i>说明</template>
            <el-menu-item index="explain">说明</el-menu-item>
          </el-submenu> -->
        </el-menu>
      </el-col>
      <el-col
        :span="20"
        style="height: 100%;overflow: auto;"
      >
        <keep-alive>
          <router-view></router-view>
        </keep-alive>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import headTop from "@/components/headTop";

export default {
  components: {
    headTop
  },
  computed: {
    defaultActive: function() {
      return this.$route.path.replace("/", "");
    }
  }
};
</script>


<style lang="less" scoped>
@import "../style/mixin";
</style>
